You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Mode Method > Statistics.Mode Method ([In] TVec)
Dew Stats for .NET
ContentsIndexHome
Example

Calculate the mode of sample data [1,5,2,11,5,3].

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector a = new Vector(0); a.SetIt(false, new double[] {1,5,2,11,5,3}); double md = Statistics.Mode(a); // md = 5 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.